#include "abstractgenerator.h"
#include "abstractpresenter.h"

#include <QtGui>

#include <mainwindow.h>
#include <textpresenter.h>
#include <compoundpresenter.h>
#include <randomgenerator.h>

int main(int argc, char** argv) {
    QApplication app(argc, argv);

    MainWindow mw;
    CompoundPresenter pr;
    pr << new TextPresenter(mw.getResultLabel())
       << new TextPresenter(mw.getAdditionalLabel());

    RandomGenerator gen(pr);
    mw.setGenerator(&gen);

    mw.show();

    return app.exec();
}
